package com.dog.view.beans;

import com.dog.model.ContactPerson;
import com.dog.model.Customer;
import org.richfaces.component.html.HtmlTabPanel;

import javax.annotation.PostConstruct;
import java.io.Serializable;

/**
 * User: Kuttubek Aidaraliev
 * Date: 21.06.2010
 * Time: 14:40:39
 */
public class CustomerBean extends BaseBean<Customer> {

    private String selectedContactPersonTab;
    private HtmlTabPanel contactPersonTabPanel;
    private ContactPerson contactPerson;
    private boolean editingContactPersons = false;
    private boolean changeContactPersons = false;
    private boolean showFormContactPerson = false;
    private boolean requisiteEditing = false;

    public CustomerBean() {
    }

    @PostConstruct
    protected void initialized(){
        super.initialized();
    }

    @Override
    protected Customer newEntity() {
        return new Customer();
    }

    public HtmlTabPanel getContactPersonTabPanel() {
        return contactPersonTabPanel;
    }

    public void setContactPersonTabPanel(HtmlTabPanel contactPersonTabPanel) {
        this.contactPersonTabPanel = contactPersonTabPanel;
    }

    public ContactPerson getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(ContactPerson contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getSelectedContactPersonTab() {
        return selectedContactPersonTab;
    }

    public void setSelectedContactPersonTab(String selectedContactPersonTab) {
        this.selectedContactPersonTab = selectedContactPersonTab;
    }

    public boolean isEditingContactPersons() {
        return editingContactPersons;
    }

    public void setEditingContactPersons(boolean editingContactPersons) {
        this.editingContactPersons = editingContactPersons;
    }

    public boolean isChangeContactPersons() {
        return changeContactPersons;
    }

    public void setChangeContactPersons(boolean changeContactPersons) {
        this.changeContactPersons = changeContactPersons;
    }

    public boolean isShowFormContactPerson() {
        return showFormContactPerson;
    }

    public void setShowFormContactPerson(boolean showFormContactPerson) {
        this.showFormContactPerson = showFormContactPerson;
    }

    public boolean isRequisiteEditing() {
        return requisiteEditing;
    }

    public void setRequisiteEditing(boolean requisiteEditing) {
        this.requisiteEditing = requisiteEditing;
    }
}
